Destructive-read random access memory system buffered with destructive-read memory cache

ABSTRACT

A memory storage system is disclosed. In an exemplary embodiment, the memory storage system includes a plurality of memory storage banks and a cache in communication therewith. Both the plurality of memory storage banks and the cache further include destructive read memory storage elements.

CROSS REFERENCE TO RELATED APPLICATIONS

[0001] This application is a continuation application of U.S. Ser. No. 10/063,466, filed Apr. 25, 2002, the contents of which are incorporated by reference herein in their entirety.

BACKGROUND OF INVENTION

[0002] The present invention relates generally to integrated circuit memory devices and, more particularly, to a random access memory system of destructive-read memory cached by destructive-read memory.

[0003] The evolution of sub-micron CMOS technology has resulted in significant improvement in microprocessor speeds. Quadrupling roughly every three years, microprocessor speeds have now exceeded 1 Ghz. Along with these advances in microprocessor technology have come more advanced software and multimedia applications, which in turn require larger memories for the application thereof. Accordingly, there is an increasing demand for larger Dynamic Random Access Memories (DRAMs) with higher density and performance.

[0004] DRAM architectures have evolved over the years, being driven by system requirements that necessitate larger memory capacity. However, the speed of a DRAM, characterized by its random access time (tRAC) and its random access cycle time (tRC), has not improved in a similar fashion. As a result, there is a widening speed gap between the DRAMs and the CPU, since the clock speed of the CPU steadily improves over time.

[0005] The random access cycle time (tRC) of a DRAM array is generally determined by the array time constant, which represents the amount of time to complete all of the random access operations. Such operations include wordline activation, signal development on the bitlines, bitline sensing, signal write back, wordline deactivation and bitline precharging. Because these operations are performed sequentially in a conventional DRAM architecture, increasing the transfer speed (or bandwidth) of the DRAM becomes problematic.

[0006] One way to improve the row access cycle time of a DRAM system for certain applications is to implement a destructive read of the data stored in the DRAM cells, and then temporarily store the destructively read data into a buffer cell connected to the sense amplifier of the same local memory array. (See, for example, U.S. Pat. Nos. 6,205,076 and 6,333,883 to Wakayama, et al.) In this approach, different wordlines in a local memory array connected to a common sense amplifier block can be destructively read sequentially for a number of times, which is set by one plus the number of the buffer cells per sense amplifier. However, the number of buffer cells that can be practically implemented in this approach is small, due to the large area required for both the buffer cells and associated control logic for each local DRAM array. Furthermore, so long as the number of buffer cells is less than the number of wordlines in the original cell arrays, this system only improves access cycle time for a limited number of data access cases, rather than the random access cycle time required in general applications.

[0007] A more practical way to improve the random access cycle time of a DRAM system is to implement a destructive read of the data stored in the DRAM cells, and then temporarily store the destructively read data into an SRAM based cache outside of the main memory array. The SRAM based cache has at least the same number of wordlines as one, single-bank DRAM array. (The term “bank” as described herein refers to an array of memory cells sharing the same sense amplifiers.) This technique is described in U.S. patent application Ser. No. 09/843,504, entitled “A Destructive Read Architecture for Dynamic Random Access Memories”, filed Apr. 26, 2001, and commonly assigned to the assignee of the present application. In this technique, a delayed write back operation is then scheduled for restoring the data to the appropriate DRAM memory location at a later time. The scheduling of the delayed write back operation depends upon the availability of space within the SRAM based cache. While such an approach is effective in reducing random access cycle time, the use of an SRAM based cache may occupy an undesired amount of chip real estate, as well as result in more complex interconnect wiring to transfer data between the DRAM and the cache. Where chip area is of particular concern, therefore, it becomes desirable to reduce random access cycle time without occupying a relatively large device area by using an SRAM based cache.

SUMMARY OF INVENTION

[0008] The above discussed and other drawbacks and deficiencies of the prior art are overcome or alleviated by a memory storage system. In an exemplary embodiment, the memory storage system includes a plurality of memory storage banks and a cache in communication therewith. Both the plurality of memory storage banks and the cache further include destructive read memory storage components.

[0009] In another embodiment, a dynamic random access memory (DRAM) system, includes a number (n) of DRAM storage banks, each of the n DRAM storage banks having a number (m) of wordlines associates therewith. A cache includes a first DRAM cache bank and a second DRAM cache bank, both the first DRAM cache bank and the second DRAM cache bank having the number m of wordlines associated therewith. A line buffer structure includes a pair of buffers capable of storing data read from the DRAM storage banks and the first and second DRAM cache banks. A control algorithm controls the transfer of data between the DRAM storage banks, the pair of buffers and the DRAM cache banks. Data read from said DRAM storage banks and said DRAM cache banks is destructively read therefrom.

BRIEF DESCRIPTION OF DRAWINGS

[0010] Referring to the exemplary drawings wherein like elements are numbered alike in the several Figures:

[0011]FIG. 1 is a schematic block diagram of a destructive read, dynamic random access memory (DRAM) system, in accordance with an embodiment of the invention;

[0012]FIG. 2 is a table which illustrates the structure of a cache tag included in the DRAM system;

[0013]FIG. 3 is a table which illustrates the structure of a buffer tag included in the DRAM system;

[0014]FIG. 4(a) is a schematic diagram which illustrates one embodiment of a buffer structure included in the DRAM system;

[0015]FIG. 4(b) is a schematic diagram which illustrates exemplary connections for data lines shown in FIG. 4(a);

[0016]FIG. 5(a) is a table illustrating examples of possible data transfer operations allowed under the DRAM system configuration;

[0017]FIG. 5(b) is a timing diagram which illustrates the operation of the buffer structure shown in FIG. 4;

[0018]FIG. 5(c) is a schematic diagram of an alternative embodiment of the buffer structure shown in FIG. 4;

[0019]FIG. 5(d) is a table illustrating a pipeline scheme associated with the buffer structure of FIG. 5(c);

[0020] FIGS. 6(a)-6(f) are state diagrams representing various data transfer operations under a strong form algorithm used in conjunction with the DRAM system;

[0021]FIG. 7 is a state diagram illustrating an initialization procedure used in the strong form algorithm;

[0022]FIG. 8 is state diagram illustrating an optional data transfer operation in the strong form algorithm;

[0023]FIG. 9 is a state table illustrating the allowable states under the strong form algorithm;

[0024] FIGS. 10(a)-10(d) are state tables illustrating allowable states under a general form algorithm which alternatively may be used in conjunction with the dram system; and

[0025] FIGS. 11(a)-11(f) are state diagrams representing various data transfer operations under the general form algorithm used in conjunction with the DRAM system.

DETAILED DESCRIPTION

[0026] Disclosed herein is a random access memory system based upon a destructive-read memory that is also cached by destructive read memory. A destructive-read memory describes a memory structure that loses its data after a read operation is performed, and thus a subsequent write-back operation is performed to restore the data to the memory cells. If the data within DRAM cells are read without an immediate write-back thereto, then the data will no longer reside in the cells thereafter. As stated above, one way to improve random access cycle time has been to operate a memory array in a destructive read mode, combined with scheduling of a delayed write back using a SRAM data cache. As also stated previously, however, existing SRAM devices occupy more device real estate, and usually include four or more transistors per cell as opposed to a DRAM cell having a single access transistor and storage capacitor. Accordingly, the present invention embodiments allow the same destructive read DRAM banks to also function as the cache, thereby saving device real estate, among other advantages to be discussed hereinafter.

[0027] Briefly stated, in the present embodiments, the data that is destroyed by being read from a plurality of DRAM banks are now cached by (i.e., written to) a dual bank DRAM data cache that is also operated in a destructive read mode. In addition to the DRAM banks and the dual-bank cache, there are also included a pair of register line buffers, each for storing for a single page of data. A cache tag stores the bank information for each wordline of the cache, as well as flags to indicate if a particular bank in the dual-bank cache has valid data present. There is also a buffer tag that, for each buffer, contains a flag indicating if valid data exists therein, as well as the bank and row information associated with the data. Another flag indicates which one of the two buffers may contain the randomly requested data from the previous cycle.

[0028] As will also be described in greater detail, based upon a concept of “rules of allowable states”, one or more path independent algorithms may be devised to determine data transfer operation to be implemented in preparation for the next clock cycle. The data transfer operations (i.e., moves) will depend on only the current state of the data in the DRAM banks, the cache and the buffers, rather than the history preceding the current state. For ease of understanding, the following detailed description is organized into two main parts: (1) the system architecture; and (2) the scheduling algorithms implemented for the architecture.

[0029] I. System Architecture

[0030] Referring initially to FIG. 1, there is shown a schematic block diagram of a destructive read, dynamic random access memory (DRAM) system 10. The DRAM system 10 includes a plurality of n DRAM storage banks 12 (individually designated BANK 0 through BANK n−1), a destructive read DRAM cache 14 including dual cache banks 16, a cache tag 18, a pair of register line buffers 20 (individually designated as buffer 0 and buffer 1), a buffer tag 22, and associated logic circuitry 24. It will be noted that the terms “bank” or “BANK” used herein refer to a memory cell array sharing a common set of sense amplifers.

[0031] The associated logic circuitry 24 may further include receiver/data in elements, OCD/data out elements, and other logic elements. Unlike existing cache, the two DRAM cache banks 16 may be identical (in both configuration and performance) to the n normal DRAM banks 12. Accordingly, the system 10 may also be considered as having an n+2 bank architecture, wherein n DRAM banks are used for conventional memory storage and 2 DRAM banks are used as cache. Hereinafter, the two DRAM banks 16 used for the cache 14 will be referred to as “cache banks”, individually designated as CBANK A and CBANK B.

[0032] Each DRAM bank 12 (BANK 0 to n−1) and cache bank 16 (CBANK A, B) has the same number of wordlines and bitlines. In a preferred embodiment, the same array support circuitry (e.g., wordline driver and sense amplifier configurations) may support both the DRAM banks 12 and the cache banks 16. Alternatively, different array configurations for each DRAM bank 12 (BANK 0 to n−1) and each cache bank 16 (CBANK A, B) may be used, so as long as each cache bank 16 (CBANK A, B) contains at least the same number of wordlines and bitlines as the DRAM banks 12 (BANK 0 to n−1).

[0033] Both cache banks 16 share the cache tag 18 in a direct mapping cache scheme. Data associated with a particular wordline address (e.g., wordline 0) of one of the DRAM banks 12 may be stored in that particular wordline of one of the two cache banks 16 (either A or B) but not both. This allows the cache 14 to read the data from one of the DRAM banks 12 while writing new data to another DRAM bank 12. The structure of the cache tag 18 is illustrated in FIG. 2. As can be seen, for each wordline (numbered 0 through m) the cache tag 18 stores the DRAM bank address information (shown in this example as a 3-bit encoded bank address), as well as an indication of the presence of data in the wordlines of cache banks CBANK A and CBANK B. “A” and “B” flags indicate whether valid data exists in the CBANK A, CBANK B, or neither. In the example illustrated, wordline 0 of CBANK A contains valid data from (DRAM) BANK 0, wordline 0. Also, wordline 2 of CBANK B contains valid data from BANK 7, wordline 2, while wordline 3 of CBANK A contains valid data from BANK 3, wordline 3.

[0034] Each of the two line buffers 20 is capable of storing a single page of data (i.e., a word). The line buffers 20 may be made of a register array, and each has separate input and output ports. FIG. 3 illustrates the structure of the buffer tag 22, which includes the bank address, the row address (an 8-bit encoded address in this example), a valid flag and a request flag for each buffer 20. However, as will be discussed later, the row address associated with each buffer 20 should be the same in a preferred embodiment, thus it is shared between the two buffers. The valid flag indicates whether the data in the buffer is valid. The request flag indicates if the buffer 20 (either buffer 0 or buffer 1) contains the previously requested data for a particular bank and row address for either read to data-out (OCDs) or write from data_in (receivers).

[0035] Referring now to FIG. 4, there is shown a schematic diagram that illustrates the structure of the two buffers 20 (buffer 0 and buffer 1) for each data in/out pin. The buffers 20 are used to handle the traffic of data transfers between the DRAM banks (BANK 0 to n−1) and cache 14 (CBANK A, B) while avoiding any potential data contention on the data lines. A data_in/data_out bus 30 (including data_in line 30 a and data_out line 30 b) is connected to both buffer 0 and buffer 1 through a plurality of corresponding transfer gates 32 controlled by read/write signals gw0/gr0 and gw1/gr1, respectively. The data_in/data_out bus 30 provides an external interface between the DRAM system 10 and any external devices (customers) that read from or write to the system.

[0036] A read secondary data line (RSDL) 34 is a unidirectional signal bus that connects the output of a sense amplifier (SA) or secondary sense amplifier (SSA) (not shown) in the DRAM bank array to buffer 0, through a transfer gate 36 controlled by signal r0. In other words, any data read from one of the DRAM banks 12 into the buffer 20 is sent to buffer 0 through RSDL 34. Similarly, CRSDL (cache read secondary data line) 38 is unidirectional signal bus that connects the output of a sense amplifier (SA) or secondary sense amplifier (SSA) (not shown) associated with the cache 14 to buffer 1, through a transfer gate 40 controlled by signal r0. In other words, any data read from one of the cache banks 16 into the buffer 20 is sent to buffer 1 through CRSDL 38.

[0037] In addition, a write secondary data line (WSDL) 42 is a unidirectional signal bus that connects outgoing data from either buffer 0 or buffer 1 back to the DRAM banks 12.

[0038] This is done through multiplexed transfer gates 44 controlled by signals w00 and w10. Correspondingly, a cache write secondary data line (CWSDL) 46 is a unidirectional signal bus that connects outgoing data from either buffer 0 or buffer 1 to the cache banks 16. This is done through multiplexed transfer gates 48 controlled by signals w01 and w11.

[0039]FIG. 4(b) is a schematic diagram which illustrates exemplary connections for data lines WSDL, RSDL, CWSDL and CRSDL between n DRAM banks, two DRAM cache banks and two buffers. By way of example, the width of the data lines is assumed to be 128 bits.

[0040] Although the buffer structure is implemented by using level sensitive latches shown in FIG. 4(a), an alternative scheme based on edge triggered latches and pipelined tag comparisons may also implemented, as will be discussed later. Furthermore, it will be noted that under the present embodiment, buffer structure of FIG. 4(a) is defined such that: data incoming from the DRAM banks 12 is always stored in buffer 0; data incoming from the cache banks 16 is always stored in buffer 1; and data outgoing from buffer 0 and buffer 1 can go to either the DRAM banks 12 or the cache banks 16. However, it will be appreciated that the structure could be reversed, such that data coming into the buffers from the DRAM banks 12 or the cache banks 16 could be stored in either buffer, whereas data written out of a particular buffer will only go to either the DRAM banks or the cache banks 16.

[0041] For an understanding of the operation of the DRAM system 10, a single clock cycle operation is discussed hereinafter, with ¼ clock setup times of command and address signals are assumed to be used for tag comparison. A single cycle operation means that each DRAM bank (including the cache banks) can finish a read or write operation in one clock cycle. In each clock cycle, there will be no more than one read operation from a DRAM bank, no more than one read operation from a cache bank, no more than one write operation to a DRAM bank, and no more than one write operation to a cache bank. Therefore, up to four individual read or write operations between the DRAM bank and the cache may occur during each cycle, while still allowing successful communication with the two buffers. With each data transfer operation, the communication is enabled through one of the two buffers.

[0042]FIG. 5(a) is a table illustrating examples of each of the four possible data transfer operations allowed under the present system configuration. For example, during a random access request for the data stored in BANK 2, wordline 4 (abbreviated bank2_wl4), the following operations could take place:

[0043] (1) move the data previously in buffer 0 (e.g., from bank0_wl2) back to BANK 0;

[0044] (2) move the data out from bank2_wl4 to buffer 0;

[0045] (3) move the data previously in buffer 1 (e.g., from bank3_wl2) to a cache bank (e.g. CBANK A); and

[0046] (4) move the data from wordline 4 in CBANK B (e.g., bank0_wl4) to buffer 1.

[0047] Because there are at least two DRAM banks, two buffers, and two cache banks, all four of the above data transfer operations may be enabled simultaneously.

[0048] As will be explained in further detail later, the above series of exemplary operations during a clock cycle are generally determined based upon the requested command (if any) and the existing state of the data. A series of allowable states will be defined, and an algorithm will be implemented which upholds the rules of allowable states. In the context of the above example in FIG. 5(a), immediately prior to the request for data in bank2_wl4, buffer 0 initially contains the data bits previously read from the cells associated with the second wordline in DRAM bank 0 (bank0_wl2). In addition, buffer 1 initially contains the data bits previously read from the cells associated with the second wordline in DRAM bank 3 (bank3_wl2). The cache tag 18 maintains the bank address information associated with each wordline in cache banks, as well as whether any valid data is in the A or B bank. Specifically, the above example assumes that cache bank B initially contains the data bits previously read from the fourth wordline in DRAM bank 0 (bank 0_wl4). All of these initial states are known from the previous clock cycle.

[0049] When the new command (Request bank2_wl4) is received during the setup time, a tag comparison is done. The tag comparison determines if a requested data is a buffer hit, a cache hit, or a buffer & cache miss (i.e., DRAM bank hit). In this example, the requested data is neither in the buffers nor the cache, and thus the comparison result is considered a DRAM bank hit. In other words, the requested data is actually in its designated DRAM bank location. In addition to locating the requested data, the tag comparison also checks to see if there is any valid data in either of the cache banks at the same wordline address as in the request (e.g., wl4). The result in this example is valid data from DRAM bank 0, wordline 4 (bank0_wl4) is found in cache bank B.

[0050] Because the present system employs a direct mapping scheduling, the data bits from bank0_wl4 should not be stored in either cache bank for future scheduling. Thus, the data bits from bank0_wl4 are to be transferred to buffer 1. Meanwhile, the requested data bank2_wl4 needs to be transferred to buffer 0 to be subsequently retrieved by the customer. However, the data initially in buffer 0 (bank0_wl2) must first be returned to its location in the DRAM banks (i.e., BANK 0, wordline 2), which DRAM bank is different from the bank in the request. Since both buffers contain valid data, one of them will be associated with a DRAM bank number that is not the same number as the requested DRAM bank. Buffer 0 is checked first, and through the tag comparison it is determined that it is not associated with the same DRAM bank number as in the request, so the data in buffer 0 is sent back to DRAM bank 0. The data in the other buffer, i.e., the data bits from bank3_wl2 in buffer 1, will be transferred to cache bank A.

[0051] A fundamental data transferring principle or the present system is to store up to two data pages having the same wordline number in two buffers as a pair. One is used for the requested data page, while the other, if necessary, is used for transferring a valid data page (having a particular wordline address corresponding to the same wordline address as the requested data) out of the cache so to avoid data overflow in future cycles. So long as this pairing rule is followed, the data transfer integrity is fully maintained without losing any bank data.

[0052] Referring now to FIG. 5(b), there is shown a timing diagram which illustrates the operation of the buffer structure shown in FIG. 4(a). Again, there is an assumed setup time for the command, address and data corresponding to the new request. Because the associated logic is relatively simple, a small amount of time (e.g., about 0.5 ns in 0.13 micro technology) may be sufficient. Otherwise, a delayed clock may be implemented for internal DRAM operation. During the setup time, the address information (add) is used for tag comparison, and command (cmd) is used to see if a request for data transfer exists. Command is also pipelined to the next clock so that a read (or write) command is then performed from (or to) the data buffers, as in a read (write) latency 1 operation. In this level sensitive latch scheme, the “w” gates 44 in FIG. 4(a) are turned on during the first half of the clock cycle and turned off for the second half of the clock cycle, thereby allowing data to be sent to WSDL 42 and latched for one clock. The “r” gates 36, 40 are turned on for the second half of the clock cycle, allowing the valid data from the DRAM banks to come in as the macro read latency is assumed to be less than one clock cycle. The data is then latched into the register buffers at the rising edge of the next cycle. If a read command is received, the data is read from the buffer (associated with the requested address) to data_out lines 30 b. If a write command is received, the data is written from the data_in lines 30 a to the buffer which is associated with the requested address.

[0053] It should be noted that, regardless of whether the request is a read, write or write with bit masking, for the proposed random access memory system, internal operation will first bring the data page associated to the requested wordline into one of the buffers, where a read (copy the data out to data_out 30 b) or write (update the data page with input on data_in 30 a) is performed. Except for the operation on data_in and data_out lines and controlling gates gw0, gw1, rw0, rw1, the scheduling algorithm and data movement for DRAM banks, cache, and buffers are identical for read and write requests.

[0054] An alternative buffer scheme 50 based upon positive clock edge triggered latches 52 is shown in FIG. 5(c). Here, one clock cycle is used for tag read and comparison to be more consistent with ASIC methodologies. Using one clock tag comparison, FIG. 5(d) illustrates a timing flow consistent with the clock edge triggered design of FIG. 5(c). The read latency in this embodiment is two clocks. It will be noted that two consecutive commands (request 1 and request 2) are stacked sequentially and executed in a seamless pipeline fashion as shown in FIG. 5(d). In the next section of the description, it will be shown that seamless stacking for any random sequence is possible by implementing a path-independent algorithm specifically designed for the DRAM system 10.

[0055] II. Scheduling Algorithms

[0056] In order to successfully use the above described architecture of a destructive read DRAM array having a destructive read cache, an appropriate scheduling scheme should be in place such that the system is maintained in an allowable state following any new random access request. The general approach is to first define the allowable states, initialize the system to conform to the allowable states (i.e., initialization), and then ensure the allowable states are maintained after any given data transfer operation (i.e., system continuity).

[0057] Rules of Allowable States (Strong Form)

[0058] In a preferred embodiment, “strong form” rules of allowable states are defined, characterized by a symmetric algorithm that maintains valid data in both buffers, the data having the same wordline address, but from a different DRAM bank. Accordingly, at the rising edge of every clock cycle, the following rules are to be satisfied:

[0059] Rule #1—There is stored in each of the two buffers a data word, having a common wordline address with one another. One of the two data words in the buffers is the specific data corresponding to the bank address and wordline address from the preceding random access request.

[0060] An example of this rule may be that buffer 0 contains the data read from DRAM bank 2, wordline 3 (as requested from the previous cycle), while buffer 1 contains data previously read from wordline 3 of the cache (either cache bank A or cache bank B) and associated to bank 4, wordline 3.

[0061] Rule #2—There is no valid data currently associated with the above wordline address (i.e., the particular wordline address associated with the data in the buffers) in the cache.

[0062] In continuing with the above example, neither cache bank A nor cache bank B would have valid data stored at wordline address 3. That is, A=0 and B=0 at wordline 3 of the cache tag.

[0063] Rule #3—For every wordline address other than the one corresponding to that of the buffers, there is one and only one valid data word stored in one and only one cache bank.

[0064] Thus, in the above example, for every wordline address other than wordline address 3, either (A=1 and B=0), or (A=0 and B=1).

[0065] It should also be noted that under Rule #1, the data page associated with the requested bank and wordline address (for read or write) will arrive at the buffer at the next clock cycle for the appropriate read and write operation. Given the rules of allowable states outlined above, for any random access request (read/write), it is thus possible to execute a predefined procedure under which the proposed system will be both initialized and subsequently maintained in the allowable states for any clock cycle.

INITIALIZATION

[0066] The first part of the strong form algorithm begins with an initialization procedure. Following system power-up, the buffer tag 22 (from FIG. 3 as previously discussed) is set as follows: (1) the valid flags for buffer 0 and buffer 1 are set to be “1”; (2) the row address corresponds to wordline 0; (3) the bank address for buffer 0 is bank 1; (4) the bank address for buffer 1 is bank 0; and (5) the request flag for both buffers is 0 since there is no previous request.

[0067] In addition, following system power-up, with the exception of wordline 0, each flag for cache bank A of cache tag 18 is initialized to A=1, while all bank addresses in the cache tag 18 are set to bank 0. Each flag for cache bank B is initialized to B=0. By setting the buffer and cache tag as stated above, buffer 0 corresponds to a valid data word associated with bank 1_wordline 0, while buffer 1 corresponds to a valid data word associated with bank 0_wordline 0. Finally, with the exception that wordline 0 corresponds to no valid data, all other wordlines in the dual bank cache have valid data associated with bank 0 in cache bank A. Therefore, the above stated strong form rules are initially satisfied.

CONTINUITY

[0068] Following initialization, it will be assumed that a random read or write request is made shortly before the rising edge of a clock cycle. At the rising edge of the clock cycle, the random access request (read or write) shall hereinafter be designated by Xj, wherein “X” is the bank address and “j” is the wordline number (address). The term Di shall represent the data page initially stored in buffer 0, wherein “D” is the bank address and “i” is the wordline number. The term Qi shall represent the data page initially stored in buffer 1, wherein “Q” is the bank address and “i” is the wordline number. It will be noted that in accordance with rule #1 stated above, D≠Q in all cases, and the wordline number (i) is the same for buffer 0 and buffer 1.

[0069] As is also the case under rule #2 and rule #3, for any given wordline number k≠i, there is one and only one valid data page associated with the wordline k stored in the cache. The term C(k) is hereby designated as the corresponding bank address for wordline k in the cache tag. Therefore, for any given request Xj, the data will be found in either the associated DRAM bank, one of the two buffers, or the cache. The following illustrates the resulting data transfer operations executed for each of the three general possible scenarios:

[0070] Case 1—Buffer Hit

[0071] In this case, j=i, and either X=D or X=Q. That is, the requested data is already stored in either buffer 0 or buffer 1. Since the rules for the allowable states are already satisfied, no further data transfer is implemented in this clock cycle. This is reflected by the lack of change in the state diagram of FIG. 6(a).

[0072] Case 2—Cache Hit

[0073] If the requested data Xj is contained in the cache, then j≠i (under Rule #2). That is, the wordline number of the requested data does not correspond to the wordline of the data in the buffers. Furthermore, since a single page of data cannot correspond to two bank addresses, then either X≠

D or X≠Q, or both.

[0074] If X≠D, then the data for Dj is not in the buffer (from the above paragraph) or in the cache (under Rule #3), thus the data for Dj is in the corresponding DRAM bank. The following steps are then implemented to conform to the above rules for allowable states:

[0075] Xj is moved from one cache bank (either A or B) to buffer 1;

[0076] Di is moved from buffer 0 to the other cache bank (B or A);

[0077] Qi is moved from buffer 1 to DRAM bank Q;

[0078] Dj is moved from DRAM bank D to buffer 0.

[0079] This series of data shifts is illustrated in FIG. 6(b). On the other hand, if X=D, then it must be true that X≠Q, and the data for Qj is found in the corresponding DRAM bank. Accordingly, the following steps are then implemented:

[0080] Xj is moved from one cache bank (either A or B) to buffer 1;

[0081] Qi is moved from buffer 1 to the other cache bank (B or A);

[0082] Di is moved from buffer 0 to DRAM bank D;

[0083] Qj is moved from DRAM bank Q to buffer 0.

[0084] This series of data shifts is illustrated in FIG. 6(c).

[0085] CASE 3 a—buffer miss, cache miss, j=i

[0086] If the requested data Xj is neither in the buffers nor in the cache, then it (Xj) is in the corresponding DRAM bank. Since j=i, it is also true that X≠D. Thus, a conforming operation may be performed in two steps, as illustrated in FIG. 6(d):

[0087] Xj is moved from DRAM bank X to buffer 0;

[0088] Di is moved from buffer 0 to DRAM bank D.

[0089] CASE 3 b—buffer miss, cache miss, j≠i, X≠D

[0090] In this case, the requested data is again located in the corresponding DRAM bank. However, the wordline address of the requested data is different than the wordline address of the data in the buffers. Under the rules of allowable states, there exists a valid Cj for row address j stored in one of the cache banks. Since X≠D, then the bank address of the requested data is different than the bank address of the data in buffer 0, and the following steps are implemented:

[0091] Xj is moved from DRAM bank X to buffer 0;

[0092] Cj is moved from one cache bank (A or B) to buffer 1;

[0093] Qi is moved from buffer 1 to the other cache bank (B or A);

[0094] Di is moved from buffer 0 to DRAM bank D.

[0095] This series of data shifts is illustrated in FIG. 6(e).

[0096] CASE 3 c—buffer miss, cache miss, j≠i, X=D, X≠Q

[0097] The only difference between this case and CASE 3 b above is that the bank address of the requested data is now the same as the bank address of the data contained in buffer 0 (i.e., X =D). However, it must be true that the bank address of the requested data is different than the bank address of the data contained in buffer 1 (i.e., X≠Q). Thus, the following steps are implemented as shown in FIG. 6(f):

[0098] Xj is moved from DRAM bank X to buffer 0;

[0099] Cj is moved from one cache bank (A or B) to buffer 1;

[0100] Di is moved from buffer 0 to the other cache bank (B or A);

[0101] Qi is moved from buffer 1 to DRAM bank Q.

[0102] An alternative embodiment of the initialization procedure may be useful in helping to the system to reduce soft error rate (SER) by not storing any data in buffers for a long time. In such an embodiment, following system power-up, each flag for cache bank A of cache tag 18 is initialized to A=1, while all bank addresses in the cache tag 18 are set to the same address (e.g., 000), and the valid flags for tag buffer 22 are both set to be “0”.

[0103] Referring now to FIG. 7, there is also shown the state diagram for the initialization procedure described above, wherein for a cache hit (Ci) for the first request, the data is moved from the cache to buffer 1; for a cache and buffer miss (Di), the data is moved from DRAM bank D to buffer 0.

[0104] Finally, FIG. 8 is a state diagram of an optional data shifting operation that may be performed if no request is received during a given clock cycle. Because of the possibility of soft error rate (SER), it may be desirable not to keep data stored in the buffers if there is no request from a customer (external device). In this case, the data Di in buffer 0 is returned to DRAM bank D, while the data Qi in buffer 1 is sent to one of the cache banks.

[0105] The above described data shifting algorithm under the “strong form” rules of allowable states is advantageous in that by always having both buffer contain valid data, the requested data can be transferred to one of the buffers during one clock cycle while still maintaining the system in an allowable state. As can be seen from the various possibilities outlined above, at most there is only four data transfer operations and the data transfer logic is relatively easy to implement. However, the strong form rules may be generalized for tradeoffs between performance, power and the number of logic gates in the system implementation thereof. Accordingly, a “general form” algorithm is also presented.

[0106] Briefly stated, a “general form” allows for more allowable states in the buffers, thereby reducing the number of required data transfer operations. This, in turn, results in less power dissipated in the device. On the other hand, a tradeoff is that extra logic is used to handle the increase in allowable states. By way of comparison, FIG. 9 is a table illustrating the allowable states under the strong form rules, while FIGS. 10(a)-(d) illustrate the allowable states under the general form rules. As can be seen, in addition to buffers 0 and 1 containing valid data, either buffer or both may also be empty. The rules for allowable states for the general form may be summarized as follows:

[0107] Rules of Allowable States (General Form):

[0108] Rule #1—Two or less valid data pages may be located in the two buffers. If each buffer happens to contain valid data, then the data in each has the same wordline address. However, if a random access request was made during the previous cycle, then one of the buffers must contain the data corresponding to the previous random access request.

[0109] Rule #2—If either or both of the buffers contain any valid data pages (associated with a particular wordline address) therein, there is no valid data having that same wordline address stored in the cache.

[0110] Rule #3—For all wordline addresses other than the particular one stated in Rule #2, there is at most one valid data word associated with the wordline address stored in one and only one cache bank. That is, for every wordline address other than the one stored in the buffer tag with a valid flag (FIG. 3), A and B (FIG. 2) can not be equal to 1 at the same time.

[0111] Under the above stated general form rules, a low power method is implemented to reduce the number of moves needed, in contrast to the strong form method. For example, in the cache hit case (CASE 2) discussed earlier, the data transfer from a DRAM bank to a buffer under the strong form rules of allowable states is unnecessary under the general form rules of allowable states. In addition, under the general form rules of allowable states, certain valid data words (e.g., Di, Qi and Cj), which are the starting points of some earlier described data shifts, may not be present in the initial system state during a random access request. Thus, the symmetrical moves to and from the other buffer are no longer required.

[0112] With the general form rules, the minimum number of data shifts needed is determined for each particular cycle. It will be noted that in a case where only one of the buffers contains a valid data page initially, that page may be sent to either the cache or the DRAM bank. However, in a preferred embodiment, the selected operation is to move the data to the DRAM bank. If the data were instead moved to the cache, a subsequent DRAM bank hit having the same wordline address would result in that data having to be moved from the cache back to the buffer. Since a DRAM bank hit (buffer and cache miss) is the statistically the most likely event upon a random access request, it follows that data should be moved from a buffer to DRAM bank whenever possible to reduce the number of shifting operations. If n represents the total number of DRAM banks in the system, and m represents the number of wordlines per DRAM bank, then the probability for a buffer hit during a request is less than 2/(n*m), while the probability of a cache hit is less than 1/n. Conversely, the probability of a DRAM bank hit (buffer and cache miss) is roughly (n−1)/n. Thus, the larger the value of n and m, the greater the probability of a DRAM bank hit for a random access operation. The initialization procedure under the general form may be realized as a more conventional system. For example, all valid data may be put into the normal DRAM banks by setting all valid flags for the cache and buffers to “0”.

[0113] The following methodology outlines the data transfer operations governed by the general form rules. If no random access request is received, then one of Di or Qi (if either are present in buffer 0 or buffer 1) is moved back to the respective DRAM bank (DRAM bank D or DRAM bank Q). If a random access request Xj is received, there may be initially a valid Di in buffer 0, a valid Qi in buffer 1, and a valid Cj in the cache, or any combination thereof as outlined in the general form rules. Possible cases are as follows: Case 1—Buffer Hit

[0114] As with the strong form rules, j=i and either X=D or X=Q. That is, the requested data is already stored in either buffer 0 or buffer 1 by definition. Since the general form rules for the allowable states are already satisfied, no further data transfer is implemented in this clock cycle. This is reflected by the lack of change in the state diagram of FIG. 11(a).

[0115] Case 2—Cache Hit

[0116] It is desired to move the requested data Xj from its current location in one of the cache banks to buffer 1. If there is any valid data in either or both buffers, the data will be moved out, preferably to the corresponding DRAM bank(s) whenever possible. Regardless of the status of the two buffers:

[0117] Xj is moved from one cache bank (either A or B) to buffer 1;

[0118] Now, if both buffers contain valid data, then the further operations are:

[0119] Di is moved from buffer 0 to the other cache bank (B or A); and

[0120] Qi is moved from buffer 1 to DRAM bank Q.

[0121] Otherwise, if only one of the two buffers contain valid data, then:

[0122] either Di is moved from buffer 0 to the other cache bank (A or B); or

[0123] Qi is moved from buffer 1 to the other cache bank (B or A).

[0124] Naturally, if neither buffer contains valid data initially, then no additional operations are performed besides moving Xj from the cache to buffer 1. The above series of data shifts is illustrated in FIGS. 11(b) and 11(c).

[0125] CASE 3 a—buffer miss, cache miss, j=i, at least one buffer has valid data.

[0126] If the requested data is neither in the buffers nor in the cache, then it (Xj) is in the corresponding DRAM bank. Assuming at least one buffer has valid data initially, and further assuming j=i, it is also true that X≠D and X≠Q, if Di or Qi exist. Thus, a conforming operation may be performed in two moves, as illustrated in FIG. 11(d), where Di is assumed to exist:

[0127] Xj is moved from DRAM bank X to buffer 0;

[0128] Di is moved from buffer 0 to DRAM bank D.

[0129] CASE 3 b—buffer miss, cache miss, j≠i, at least one buffer has valid data

[0130] In this case, the requested data is again located in the corresponding DRAM bank. However, the wordline address of the requested data is different than the wordline address of the data in one or both of the buffers. Under the general rules of allowable states, there may exist a valid Cj for row address j stored in one of the cache banks. It will first be assumed that Cj, Di and Qi each exist initially. As such, it must be true that X≠D, or X≠Q, or both. If X≠D, then the following steps are implemented:

[0131] Xj is moved from DRAM bank X to buffer 0;

[0132] Cj is moved from one cache bank (A or B) to buffer 1;

[0133] Qi is moved from buffer 1 to the other cache bank (B or A);

[0134] Di is moved from buffer 0 to DRAM bank D.

[0135] However, if X=D, then X≠Q, and the following steps are implemented:

[0136] Xj is moved from DRAM bank X to buffer 0;

[0137] Cj is moved from one cache bank (A or B) to buffer 1;

[0138] Di is moved from buffer 0 to the other cache bank (B or A);

[0139] Qi is moved from buffer 1 to DRAM bank Q.

[0140] If Cj exists and only one of Di and Qi exists, then no corresponding moves are made as the starting point for such moves do not exist. The final results will still conform to the general form rules.

[0141] Next, it will be assumed that Cj does not exist, but Di and Qi both exist. Then, if X≠D, then the following steps are implemented:

[0142] Xj is moved from DRAM bank X to buffer 0;

[0143] Qi is moved from buffer 1 to either cache bank (A or B);

[0144] Di is moved from buffer 0 to DRAM bank D.

[0145] Otherwise, if X =D, then X≠Q, then the following steps are implemented:

[0146] Xj is moved from DRAM bank X to buffer 0;

[0147] Di is moved from buffer 0 to either cache bank (A or B);

[0148] Qi is moved from buffer 1 to DRAM bank Q.

[0149] Now, if Cj does not exist and there is only one valid data page in the buffers (either Di exists or Qi exists, but not both), and if X does not correspond to the buffer data (X≠D or X≠Q), then the following steps are implemented:

[0150] Xj is moved from the DRAM bank to buffer 0;

[0151] the valid buffer data is moved to the corresponding DRAM bank.

[0152] Otherwise, if the one valid data page in the buffers does correspond to X (X=D or X=Q), the following steps are implemented:

[0153] Xj is moved from the DRAM bank to buffer 0;

[0154] the valid buffer data is moved to a cache bank (B or A)

[0155] Finally, if none of Cj, Di or Qi exist, then the only operation performed is to move Xj into buffer 0.

[0156] The series of data shifts is illustrated in FIGS. 11(e) and 11(f).

[0157] It has thus been shown how a destructive read, DRAM based cache may be used in conjunction with a destructive read DRAM array to reduce random access cycle time to the array. Among other advantages, the present system provides significant area savings, compatibility in process integration, and reduced soft error concerns over other system such as those using SRAM based caches.

[0158] One specific key of the system architecture includes the dual bank cache structure, wherein simultaneous read and write access operations may be executed. In addition, the architecture also includes the two buffers which are used to redirect the data transfers. The cache tag and buffer tag contain all the information associated with data pages stored in the current state, thereby representing enough information upon which to make a deterministic decision for data shifting for the next clock cycle. Thus, no historical data need be stored in any tags.

[0159] By defining the concept of allowable states (as exemplified by the strong form rules and the general form rules), path independent algorithms may be designed such that all future data shifts are dependent only upon the current state, rather than the history preceding the current state. Any sequence of successive operations may be stacked together, and thus all random access may be seamlessly performed. Moreover, the requested data reaches a final state in a limited number of cycles (i.e., the requested data reaches a buffer in one clock cycle if setup time is used, or in two clock cycles if one clock pipe is used for tag comparison). Given the nature of path independence, as well as the fact that the random access requests are completed during limited cycles, there are only a limited number of test cases that exist. Thus, the DRAM cache system may be completely verified with test bench designs.

[0160] As stated previously, the allowable states under the strong form rules are a subset of the allowable states under the general form rules. Accordingly, the “symmetrical algorithm” used in conjunction with the strong form rules will generally include simpler logic but result in higher power consumption. The “low power” algorithm has less power dissipation but generally more logic components with more tag comparison time associated therewith. It will be noted, however, that the present invention embodiments also contemplate other possible rules for allowable states and associated algorithms, so long as path independence is maintained.

[0161] It is further contemplated that for the present destructive read, random access memory system cached by destructive read memory, the number of DRAM banks used as cache may be more than two. The number of buffers may also be more than two. Any additional cache banks and buffers could be used in conjunction with alternative architectures or in different operating configurations such as multi-cycle latency from the core. The number of cache banks may also be reduced to one for systems using caches of twice faster cycle time. The buffers may be replaced with multiplexers if latching functions are provided elsewhere, such as in local DRAM arrays or in global data re-drivers. Where chip area is less of a concern, the above architecture and/or algorithms may also be applied to an SRAM cache based system. The above architecture and/or algorithm may also be applied to a single port or dual port SRAM cache based system, for more margins of operation in terms of cache latency, or for possibly better redundancy handling, or for other performance or timing issues.

[0162] While the invention has been described with reference to a preferred embodiment, it will be understood by those skilled in the art that various changes may be made and equivalents may be substituted for elements thereof without departing from the scope of the invention. In addition, many modifications may be made to adapt a particular situation or material to the teachings of the invention without departing from the essential scope thereof. Therefore, it is intended that the invention not be limited to the particular embodiment disclosed as the best mode contemplated for carrying out this invention, but that the invention will include all embodiments falling within the scope of the appended claims. 

1. A memory storage system, comprising: a plurality of memory storage banks comprising destructive read memory components; and a cache in communication with said plurality of memory storage banks, said cache also comprising destructive read memory components.
 2. The memory storage system of claim 1, wherein said destructive read memory storage components comprise dynamic random access memory (DRAM) storage cells.
 3. The memory storage system of claim 1, wherein said cache includes a portion of said plurality of memory storage banks.
 4. The memory storage system of claim 1, further comprising: a line buffer structure in communication with said plurality of memory storage banks and said cache; a buffer tag associated with said line buffer structure; and a cache tag associated with said cache.
 5. The memory storage system of claim 4, wherein said line buffer structure includes a pair of buffers.
 6. The memory storage system of claim 5, wherein: said plurality of memory storage banks further comprises a number, n, of DRAM storage banks, each of said n DRAM storage banks having a number, m, of wordlines associated therewith; and said cache further includes a pair of DRAM cache banks, said pair of DRAM cache banks each having said number, m, of wordlines associated therewith.
 7. The memory storage system of claim 6, wherein each of said pair of buffers is capable of storing a data page therein, said data page including data bits destructively read from a selected wordline of a selected DRAM storage bank, or a selected wordline of a selected DRAM cache bank.
 8. The memory storage system of claim 7, wherein data originally contained within one of said number of DRAM storage banks may be stored in one of said pair of DRAM cache banks.
 9. The memory storage system of claim 8, wherein: any data contained in said pair of DRAM cache banks that is originally associated with said number of DRAM storage banks is stored therein through a direct mapping scheme; wherein data associated with a given wordline address within one of said number of DRAM storage banks is stored within said given wordline address within one of said pair of DRAM cache banks.
 10. The memory storage system of claim 7, wherein each of said pair of buffers comprise level sensitive latches.
 11. A dynamic random access memory (DRAM) system, comprising: a number (n) of DRAM storage banks, each of said n DRAM storage banks having a number (m) of wordlines associates therewith; a cache, said cache including a first DRAM cache bank and a second DRAM cache bank, both said first DRAM cache bank and said second DRAM cache bank having said number m of wordlines associated therewith; a line buffer structure, said line buffer structure including a pair of buffers capable of storing data read from said DRAM storage banks and said first and second DRAM cache banks; and a control algorithm for controlling the transfer of data between said DRAM storage banks, said pair of buffers and said DRAM cache banks; wherein data read from said DRAM storage banks and said DRAM cache banks is destructively read therefrom.
 12. The DRAM system of claim 11, further comprising: a cache tag for storing DRAM storage bank address information of data contained within a given wordline of said DRAM cache banks; and a buffer tag for storing DRAM storage bank address information of data contained within said pair of buffers.
 13. The DRAM system of claim 12, wherein said buffer tag further comprises: a first flag which indicates whether valid data exists within said pair of buffers; and a second flag which indicates whether randomly requested data is contained in either of said pair of buffers.
 14. The DRAM system of claim 11, further comprising: a data-in bus, said data-in bus for receiving externally originating data into the DRAM system, through said buffer structure; a data-out bus, said data-out bus for transmitting internally stored data out of the DRAM system; a read secondary data line for transmitting data from said DRAM storage banks to one of said pair of buffers; a cache secondary data line for transmitting data from said DRAM cache banks to the other of said pair of buffers; a write secondary data line for transmitting data from either of said pair of buffers to said DRAM storage banks; and a cache write secondary data line for transmitting data from either of said pair of buffers to said DRAM cache banks.
 15. The DRAM system of claim 14, wherein said pair of buffers further comprise level sensitive storage latches.
 16. The DRAM system of claim 14, wherein said pair of buffers further comprise edge triggered latches.
 17. The DRAM system of claim 11, wherein said control algorithm further comprises: a defined set of allowable states for valid data to exist within said DRAM storage banks, said pair of buffers, and said DRAM cache banks; steps for initializing the DRAM system prior to a first random access request for data stored within said DRAM storage banks, wherein said steps for initializing conform to said defined set of allowable states; and following said first random access request for data, and following any subsequent random access request for data thereafter, steps for ensuring the requested data is made available in said line buffer structure, said steps for ensuring also conforming to said defined set of allowable states.
 18. The DRAM system of claim 17, wherein: said steps for ensuring the requested data is made available in said buffer structure further include a determined series of data transfer operations executed between said DRAM storage banks and the line buffer structure, and between said DRAM cache banks and said line buffer structure; wherein said determined series of data transfer operations is path independent, characterized in that said determined series of data transfer operations is not dependent upon previous locations of data stored in said DRAM storage banks, said line buffer structure, and said cache. 